const {
  defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    port: 8888,
    host: '127.0.0.1',
    open: true,
    proxy:{
      "/api":{
        // target:'https://x.dscmall.cn/index.php/api',//目标路径   将目标路径替换为api
        target:'https://x.dscmall.cn/api',
        changeOrigin:true,
        pathRewrite:{//重写路径为api
          '^/api':''
        }
      }
    }
  },
  
})